<img> element

The <img> element instructs the device to display an image within formatted text. Note that not all devices can display images.

NOTE     You cannot embed images inside <do> or <option> elements--in other words, you cannot use images as function key labels or menu items. However, Phone.com extensions to WML do support this capability.

Syntax

Attributes

 
alt Specifies the text to display if the device does not support images or cannot find the specified image. 
src The URL of the image to display. If you specify a valid icon for the localsrc attribute (see below), the device ignores this attribute. 
localsrc The name of a known icon. If the device cannot find the icon in ROM (Read-Only Memory), it attempts to retrieve it from the UP.Link Server. If you specify a valid icon, the device ignores the src attribute (see above). 
align top | middle | bottom

Specifies image alignment relative to the current line of text. 

height The UP.Browser software does not currently support this attribute
width The UP.Browser software does not currently support this attribute
vspace The UP.Browser software does not currently support this attribute
hspace The UP.Browser software does not currently support this attribute

Example


NOTE     Some localsrc icons have different forms when displayed at different font sizes. Since you cannot control the display size, keep in mind that the appearance of these icons may vary slightly on different devices.